package com.itcs.app.pay.nowpay.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 主扫参数
 * 
 * @author LiuPeng
 * @date 2017年12月22日
 * 
 */
@Component
@PropertySource("classpath:gzhconfig.properties")
public class ZsConfig implements IXzzfConfig{

	/**
	 * @Fields 商户应用唯一标识
	 */
	@Value("${appId}")
	private String appId;

	/** 
	 * @Fields 密钥
	 */
	@Value("${appKey}")
	private String appKey;

	/** 
	 * @Fields 商户字符编码
	 */
	@Value("${mhtCharset}")
	private String mhtCharset;
	
	/** 
	 * @Fields 商户签名方法
	 */
	@Value("${mhtSignType}")
	private String mhtSignType;

	/** 
	 * @Fields 接口版本号-1.0.0
	 */
	@Value("${version}")
	private String version;
	
	/** 
	 * @Fields 设备类型-	0600 公众号
	 */
	@Value("${deviceType}")
	private String deviceType;
	
	/** 
	 * @Fields 商户交易类型-01 普通消费
	 */
	@Value("${mhtOrderType}")
	private String mhtOrderType;
	
	/** 
	 * @Fields 商户订单币种类型-156 人民币
	 */
	@Value("${mhtCurrencyType}")
	private String mhtCurrencyType;

	/** 
	 * @Fields 输出格式-0 直接调起支付  1 返回支付凭证 
	 */
	@Value("${outputType}")
	private String outputType;
	
	/** 商户后台通知URL
	 * @Fields 
	 */
	@Value("${notifyUrl}")
	private String notifyUrl;
	
	/** 
	 * @Fields 商户前台通知URL
	 */
	@Value("${frontNotifyUrl}")
	private String frontNotifyUrl;
	
	/**
	 * @return the appId
	 */
	@Override
	public String getAppId() {
		return appId;
	}
	/**
	 * @param appId the appId to set
	 */
	public void setAppId(String appId) {
		this.appId = appId;
	}
	/**
	 * @return the appKey
	 */
	@Override
	public String getAppKey() {
		return appKey;
	}
	/**
	 * @param appKey the appKey to set
	 */
	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}
	/**
	 * @return the mhtCharset
	 */
	@Override
	public String getMhtCharset() {
		return mhtCharset;
	}
	/**
	 * @param mhtCharset the mhtCharset to set
	 */
	public void setMhtCharset(String mhtCharset) {
		this.mhtCharset = mhtCharset;
	}
	/**
	 * @return the mhtSignType
	 */
	@Override
	public String getMhtSignType() {
		return mhtSignType;
	}
	/**
	 * @param mhtSignType the mhtSignType to set
	 */
	public void setMhtSignType(String mhtSignType) {
		this.mhtSignType = mhtSignType;
	}
	/**
	 * @return the version
	 */
	@Override
	public String getVersion() {
		return version;
	}
	/**
	 * @param version the version to set
	 */
	public void setVersion(String version) {
		this.version = version;
	}
	/**
	 * @return the deviceType
	 */
	@Override
	public String getDeviceType() {
		return deviceType;
	}
	/**
	 * @param deviceType the deviceType to set
	 */
	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
	/**
	 * @return the outputType
	 */
	public String getOutputType() {
		return outputType;
	}
	/**
	 * @param outputType the outputType to set
	 */
	public void setOutputType(String outputType) {
		this.outputType = outputType;
	}
	/**
	 * @return the mhtOrderType
	 */
	@Override
	public String getMhtOrderType() {
		return mhtOrderType;
	}
	/**
	 * @param mhtOrderType the mhtOrderType to set
	 */
	public void setMhtOrderType(String mhtOrderType) {
		this.mhtOrderType = mhtOrderType;
	}
	/**
	 * @return the mhtCurrencyType
	 */
	@Override
	public String getMhtCurrencyType() {
		return mhtCurrencyType;
	}
	/**
	 * @param mhtCurrencyType the mhtCurrencyType to set
	 */
	public void setMhtCurrencyType(String mhtCurrencyType) {
		this.mhtCurrencyType = mhtCurrencyType;
	}
	/**
	 * @return the notifyUrl
	 */
	@Override
	public String getNotifyUrl() {
		return notifyUrl;
	}
	/**
	 * @param notifyUrl the notifyUrl to set
	 */
	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
	/**
	 * @return the frontNotifyUrl
	 */
	public String getFrontNotifyUrl() {
		return frontNotifyUrl;
	}
	/**
	 * @param frontNotifyUrl the frontNotifyUrl to set
	 */
	public void setFrontNotifyUrl(String frontNotifyUrl) {
		this.frontNotifyUrl = frontNotifyUrl;
	}
	
}